<?php 
defined( '_JEXEC' ) or die( 'Restricted access' ); 
$jspath = JPATH_ROOT.DS.'components'.DS.'com_community';
include_once($jspath.DS.'libraries'.DS.'core.php');
?>
<div class="routeInfo" style="float:left; width:80%; margin-top:0px;">
	<p id="distance"><b><?php echo JText::_('ROUTEDETAILS_DISTANCE');?>:</b> <?php echo $this->route->getDistance();?> km</p>
	<p id="time"><b><?php echo JText::_('ROUTEDETAILS_TIME');?>:</b> <?php echo $this->route->getTime();?></p>
</div>
<div class="authorBox" style="float:right; width:20%; margin-top:0px;">
	<div class="authorName" style="width:100%; clear:both; margin-top:0px; margin-bottom:2px; float:right;">
		<p style="float:right; margin-top:0px; margin-bottom:0px;"><b><?php echo $this->route->getUser()->username; ?></b></p>
	</div>
	<div class="authorAvatar" style="width:100%; clear:both; float:right;">
		<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$this->route->getUser()->get('id'));?>">
			<img width="40px" height="40px" src="<?php echo $this->route->getUser()->getThumbAvatar(); ?>" title="<?php echo $this->route->getUser()->username; ?>" style="float:right;"/>
		</a>
	</div>
</div>
